package com.rjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rjy.entity.Teacher;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;



public interface TeacherMapper extends BaseMapper<Teacher> {

    @Insert(" INSERT INTO teacher ( name, sex, salary, hiredate, tel, address ) VALUES" +
            " ( #{teacher.name}, #{teacher.sex}, #{teacher.salary}," +
            " #{teacher.hiredate}, #{teacher.tel}, #{teacher.address} )")
    void insertTeacher(@Param("teacher") Teacher teacher);

}
